﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ShopSaleDetail_List2.aspx.cs"
    Inherits="Shop_ShopSaleDetail_List2" %>

<%@ Register Assembly="Shove.Web.UI.4 For.NET 2.0" Namespace="Shove.Web.UI" TagPrefix="ShoveWebUI" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
    <link href="../Style/css.css" rel="stylesheet" type="text/css" />
    <link href="../Style/main.css" rel="stylesheet" type="text/css" />

    <script language="javascript" type="text/javascript">
        function ReturnWidthAndHeight()
        {            
            parent.document.all['CustomerIframe'].style.height=document.body.scrollHeight;
        }
    </script>

</head>
<body onload="return ReturnWidthAndHeight();">
    <center>
        <form id="form1" runat="server">
        <table style="width: 98%">
            <tr>
                <td>
                    <asp:DataGrid ID="UWGDetail" runat="server" BackColor="#6CA4E4" CellPadding="5" Width="100%"
                        CellSpacing="1" BorderWidth="0px" AllowSorting="True" 
                        AutoGenerateColumns="False" CssClass="gStyle" OnItemDataBound="g_ItemDataBound" 
                        OnItemCommand="g_ItemCommand">
                        <FooterStyle HorizontalAlign="Center" ForeColor="#330099" BackColor="#FFFFCC"></FooterStyle>
                        <SelectedItemStyle HorizontalAlign="Center" Font-Bold="True" ForeColor="White"></SelectedItemStyle>
                        <HeaderStyle HorizontalAlign="Center" ForeColor="Navy" VerticalAlign="Middle" CssClass="gHeader">
                        </HeaderStyle>
                        <ItemStyle CssClass="gItem" BackColor="White" />
                        <Columns>
                            <asp:BoundColumn DataField="CustomerID" HeaderText="CustomerID" ReadOnly="True" Visible="False">
                            </asp:BoundColumn>
                            <asp:BoundColumn DataField="ID" HeaderText="序号" ReadOnly="True"></asp:BoundColumn>
                            <asp:TemplateColumn HeaderText="单据编号">
                                <ItemTemplate>
                                    <asp:LinkButton ID="lbOrderNo" runat="server" Text="" CommandName="OrderNo"></asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateColumn>
                                                        
                            <asp:TemplateColumn HeaderText="消费者">
                                <ItemTemplate>
                                    <asp:Label ID="lbCustomerName" runat="server" Text="" CommandName="CustomerName"></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateColumn>
                            <asp:BoundColumn DataField="GoodNo" HeaderText="产品编号" ReadOnly="True"></asp:BoundColumn>
                            <asp:BoundColumn DataField="GoodName" HeaderText="产品名称" ReadOnly="True"></asp:BoundColumn>
                            <asp:BoundColumn DataField="SaleDate" HeaderText="销售时间" ReadOnly="True"></asp:BoundColumn>
                            <asp:BoundColumn DataField="Amount" HeaderText="销售数量" ReadOnly="True"></asp:BoundColumn>
                            <asp:BoundColumn DataField="Type" HeaderText="类型" ReadOnly="True"></asp:BoundColumn>
                            <asp:BoundColumn DataField="OrderID" HeaderText="单据ID" ReadOnly="True" Visible="False">
                            </asp:BoundColumn>
                        </Columns>
                        <PagerStyle Visible="False" HorizontalAlign="Center" ForeColor="#330099" BackColor="#FFFFCC">
                        </PagerStyle>
                    </asp:DataGrid>
                    <ShoveWebUI:ShoveGridPager ID="gPager" BorderWidth="0" CssClass="gStyle" BorderStyle="None"
                        runat="server" Width="100%" ShowSelectColumn="False" DataGrid="g" OnPageWillChange="gPager_PageWillChange"
                        OnSortBefore="gPager_SortBefore" AlternatingRowColor="White" HotColor="White"
                        GuiseColor="False" ClientNavigation="true" PageSize="10" />
                </td>
            </tr>
        </table>
        </form>
    </center>
    <input id="hShopID" type="hidden" runat="server" />
    <input id="hGooDID" type="hidden" runat="server" />
    <input id="hStartDay" type="hidden" runat="server" />
    <input id="hEndDay" type="hidden" runat="server" />
</body>
</html>
